package models;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class AcessoEspecifico extends Model {

	@ManyToOne(optional=false, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
	private Equipe equipe;
	@ManyToOne(optional=false, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
	private Regional regional;

	public Equipe getEquipe() {
		return equipe;
	}

	public void setEquipe(Equipe equipe) {
		this.equipe = equipe;
	}

	public Regional getRegional() {
		return regional;
	}

	public void setRegional(Regional regional) {
		this.regional = regional;
	}
}
